package com.security.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.security.domian.User;
import com.security.mapper.redisMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class DetailService implements UserDetailsService {


    @Autowired
    private redisMapper redisMapper;
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {

//        1.根据用户名查询信息
        QueryWrapper<User> wrapper=new QueryWrapper<>();
        wrapper.select().orderByAsc();

//        2.查询权限信息 封装到类中


        return null;
    }
}
